package org.text2diagram.ddl.domain;

public class Block {
	
	private String name;
	private Color color = Color.StandardColor.WHITE.getColor();
	private Appearance appearance = Appearance.BOX;
	
	public Block(String name) {
		this.setName(name);
	}

	@Override
	public String toString() {
		return String.format("Block(name: %s, color: %s, appearance: %s", name, color, appearance);
	}
	
	
	public void setColor(Color color) {
		this.color = color;
	}

	public Color getColor() {
		return color;
	}

	public void setAppearance(Appearance appearance) {
		this.appearance = appearance;
	}

	public Appearance getAppearance() {
		return appearance;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}
	
}
